package com.cdinternationalcompany.syhapp.push

import android.os.Build

class ManufacturerHelper {

    companion object {
        /**
         * Ture is Xiaomi, otherwise false.
         */
        fun isXiaoMi(): Boolean {
            return Build.MANUFACTURER.toLowerCase().equals("xiaomi".toLowerCase());
        }

        /**
         * Ture is Xiaomi, otherwise false.
         */
        fun isOPPO(): Boolean {
            return Build.MANUFACTURER.toLowerCase().equals("OPPO".toLowerCase()) || Build.MANUFACTURER.toLowerCase().equals("ONEPLUS".toLowerCase())
        }

        /**
         * Ture is Xiaomi, otherwise false.
         */
        fun isViVo(): Boolean {
            return Build.MANUFACTURER.toLowerCase().equals("VIVO".toLowerCase());
        }

        /**
         * Ture is Xiaomi, otherwise false.
         */
        fun isHuaWei(): Boolean {
            return Build.MANUFACTURER.toLowerCase().equals("HUAWEI".toLowerCase());
        }
    }
}